package com.sc.dal.mapper.order;
import java.util.List;
import java.util.Map;

import com.sc.dal.dto.order.OrderDetailDto;
import com.sc.dal.model.order.Order;
import com.sc.dal.model.order.Orders;
import com.sc.dal.model.order.Products;

public interface OrderMapper {
    int deleteByPrimaryKey(String orderId);

    int insert(Order record);
    
    int counts(Orders orders);

    int insertSelective(Order record);

    Order selectByPrimaryKey(String orderId);

    Order selectOrderByOrderId(String orderId);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);
    
    List<Products> selectOrderProductsByOrderId(Products products);
    
    OrderDetailDto selectOrderDetailByOrderId(String orderId);
    
    List<Orders> selectList(Map<String, Object> paramMap);
    
    List<Orders> selectByParam(Orders order);
    //首页统计当日、昨日、当月金额
    List<String> querySumTotal(Map<String, Object> paramMap);
    //过期未支付的订单
    List<Order> selectShouldCancelOrders();
}